<ion-view id="withdraw-cash" view-title="提现管理"  hide-nav-bar="true">
  <ion-header-bar align-title="center" class="bar-calm">
    <div class="buttons">
      <button class="button head-button button-clear center-btn" ng-click="goBack()">
        <img src="img/order-commit/backIcon.png">
      </button>
    </div>
    <h1 class="title">提现管理</h1>
  </ion-header-bar>
  <ion-content>
    <div class="cash-info">
      <div class="cash-left">
        <div class="top">余额</div>
        <div class="balance">￥{{balance}}</div>
      </div>
      <div class="cash-right">
        <div class="btn" on-tap="goCash()">提现</div>
      </div>
    </div>
    <div class="withdraw-list">
      <div class="withdraw-title">提现记录</div>
      <div class="withdraw-record" ng-repeat="item in cashlist">
        <div class="info">
          <div ng-if="item.aliaccount">
            <span style="padding-right: 20px;">支付宝账户:</span>
            {{item.aliaccount}}
          </div>
          <div ng-if="!item.aliaccount">
            <span style="padding-right: 20px;">银行帐号:</span>
            {{item.bankcard}}<br>
            <span style="padding-right: 20px;">开户信息:</span>
            {{item.bankuser}}&nbsp;&nbsp;&nbsp;&nbsp;{{item.bankname}}
          </div>
        </div>
        <div class="left">
          <div class="time">{{item.cashdate}}</div>
          <div class="amount">￥{{item.cash}}</div>
        </div>
        <div class="right">{{item.statustxt}}</div>
      </div>
      <div class="page">
        <span>共{{page}}/{{allpage}}页</span>
        <a ng-class="{'disabled':page<=1}" on-tap="prePage()">上一页</a>
        <a ng-class="{'disabled':page>=allpage}" on-tap="nextPage()">下一页</a>
      </div>
    </div>
  </ion-content>
</ion-view>